<div class="edit_link" >
  <%= form_remote_tag :url => {:action => :on_edit_link},
      :after => "insertSpinningIconIntoEditResourceDiv()", 
      :complete => "clearEditResourceDiv()" %>
    <p><%= hidden_field_tag "row", @row %></p>
    <p><%= hidden_field "resource", "id" %></p>
    <p><%= hidden_field "resource", "ecase_id" %></p>
    <div class="link" >
      <p>Link:</p>
      <p><%= text_field "resource", "url", {:size => 80} %></p>
    </div>
    <div class="description" >
      <p>Optional description</p>
      <p><%= text_field "resource", "description", {:size => 80} %></p>
    </div>
    <div class="submit" >
      <p>
        <%= submit_tag "Save the link" %>
        <%= link_to_function "Cancel", "clearEditResourceDiv()", :class => "red" %>
      </p>
    </div>
  <%= end_form_tag %>
</div>